﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace EsayUIWebApplication1.Models
{
    public class PageModel
    {
        public PageModel()
        {
            page = 1;
            rows = 50;
        }

        public int page { get; set; }

        public int rows { get; set; }

        /// <summary>
        /// 开始行
        /// </summary>
        public int RowBegin
        {
            get { return ((page - 1) * rows) + 1; }
        }

        /// <summary>
        /// 结束行
        /// </summary>
        public int RowEnd
        {
            get { return (page * rows); }
        }
    }
}